this.uiGroup.add_actor(global.window_group);
global.stage.remove_actor(global.overlay_group);
- this.uiGroup.add_actor(global.overlay_group);
+ this.overviewGroup = new St.Widget({ name: 'overviewGroup' });
+ this.uiGroup.add_actor(this.overviewGroup);
+
global.stage.add_child(this.uiGroup);
this.screenShieldGroup = new St.Widget({ name: 'screenShieldGroup',
this.clearableCount = 0;
- this._lightbox = new Lightbox.Lightbox(global.overlay_group,
+ this._lightbox = new Lightbox.Lightbox(Main.layoutManager.overviewGroup,
{ inhibitEvents: true,
fadeInTime: ANIMATION_TIME,
fadeOutTime: ANIMATION_TIME,
if (this._desktopClone)
this._desktopClone.destroy();
- let cloneSource = Main.overview.visible ? global.overlay_group : global.window_group;
+ let cloneSource = Main.overview.visible ? Main.layoutManager.overviewGroup : global.window_group;
this._desktopClone = new Clutter.Clone({ source: cloneSource,
clip: new Clutter.Geometry(this._bottomMonitorGeometry) });
Main.uiGroup.insert_child_above(this._desktopClone, cloneSource);
let monitor = Main.layoutManager.primaryMonitor;
this._desktopFade = new St.Bin();
- global.overlay_group.add_actor(this._desktopFade);
+ Main.layoutManager.overviewGroup.add_child(this._desktopFade);
let layout = new Clutter.BinLayout();
this._stack = new Clutter.Actor({ layout_manager: layout });
this._overview._delegate = this;
this._backgroundGroup = new Meta.BackgroundGroup();
- global.overlay_group.add_child(this._backgroundGroup);
+ Main.layoutManager.overviewGroup.add_child(this._backgroundGroup);
this._backgroundGroup.hide();
this._bgManagers = [];
this._stack.hide();
this._stack.add_actor(this._overview);
- global.overlay_group.add_actor(this._stack);
+ Main.layoutManager.overviewGroup.add_child(this._stack);
this._coverPane.hide();
let ws = new Workspace.Workspace(null, i);
ws.setFullGeometry(monitors[i]);
ws.setActualGeometry(monitors[i]);
- global.overlay_group.add_actor(ws.actor);
+ Main.layoutManager.overviewGroup.add_actor(ws.actor);
this._extraWorkspaces.push(ws);
}
},
this._updateWorkspacesActualGeometry();
for (let i = 0; i < this._workspacesViews.length; i++)
- global.overlay_group.add_actor(this._workspacesViews[i].actor);
+ Main.layoutManager.overviewGroup.add_actor(this._workspacesViews[i].actor);
},
_scrollValueChanged: function() {
// This is kinda hackish - we want the primary view to
// appear as parent of this.actor, though in reality it
- // is added directly to overlay_group
+ // is added directly to Main.layoutManager.overviewGroup
this._notifyOpacityId = newParent.connect('notify::opacity',
Lang.bind(this, function() {
let opacity = this.actor.get_parent().opacity;